#define  _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    vector<vector<string>> groupAnagrams(vector<string>& strs) {
        unordered_map<string, vector<string>> hash;
        for (int i = 0; i < strs.size(); i++)
        {
            string tmp = strs[i];
            sort(tmp.begin(), tmp.end());
            cout << tmp << endl;;
            hash[tmp].push_back(strs[i]);
        }
        vector<vector<string>> ret;
        // for(auto& e : hash) ret.push_back(e.second);
        for (auto& [x, y] : hash) ret.push_back(y);
        return ret;
    }
};